package com.sky.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class NestDTO implements Serializable {

    private Integer  nestId;           // 小窝ID
    private Integer  user1Id;          // 用户1 ID
    private Integer  user2Id;          // 用户2 ID
    private String nestName;      // 小窝名称
    @JsonFormat(pattern = "yyyy-MM-dd", locale = "zh", timezone = "GMT+8")
    private LocalDate togetherTime;  // 在一起的时间
    private String backgroundImg;    // 小窝背景图URL
    @JsonFormat(pattern = "yyyy-MM-dd", locale = "zh", timezone = "GMT+8")
    private LocalDateTime createdTime; // 创建时间
    @JsonFormat(pattern = "yyyy-MM-dd", locale = "zh", timezone = "GMT+8")
    private LocalDateTime updateTime;  // 更新时间
    private Integer  deleted;           // 是否删除: 0-未删除, 1-已删除

}
